# !python.exe
# coding: cp1251
#

from __future__ import with_statement
import os
from datetime import datetime, date, time
from time import *
from types import *
import xlrd
import logging

from OkvedAssemblyClass import OkvedAss
DirNsi         = 'NSI\\okved_assembly.xls'
logging.basicConfig(filename='TestOkved.log', filemode='w', format='%(message)s', datefmt='%d.%m.%Y %H:%M:%S ')

OkAs = OkvedAss(DirNsi)
for k, v in sorted(OkAs.rulesAssPlus.iteritems()):
    logging.warning('{:8s}'.format(str(k))+ str(v))
